﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore.Infrastructure;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 易仓库存信息
    /// </summary>
    /// 

    public class EC_ShipBatchDTO
    {
        public string code { get; set; }
        public string message { get; set; }
        public string requestId { get; set; }
        public long timestamp { get; set; }
        public string version { get; set; }
        public string nonce_str { get; set; }
        public string sign_type { get; set; }
        public string sign { get; set; }
        public string biz_content { get; set; }

    }


    public class EC_ShipBatch_Data
    {
        public string total { get; set; }
        public int page { get; set; }
        public int page_size { get; set; }
        public List<EC_ShipBatch> data { get; set; }
    }

    public class EC_ShipBatch
    {
        public string ID { get; set; }
        public string RowId { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string order_code { get; set; }

        /// <summary>
        /// 计划单号
        /// </summary>
        public string stpo_code { get; set; }
        /// <summary>
        /// 入库单号
        /// </summary>
        public string reference_no { get; set; }
        /// <summary>
        /// 下架单号
        /// </summary>
        public string tp_code { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public string add_time { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public string update_time { get; set; }
        /// <summary>
        /// 出库时间
        /// </summary>
        public string ship_time { get; set; }
        /// <summary>
        /// 预计到货时间
        /// </summary>
        public string expected_date { get; set; }
        /// <summary>
        /// 跟踪号
        /// </summary>
        public string tracking_number { get; set; }
        /// <summary>
        /// 参考号
        /// </summary>
        public string ref_no { get; set; }



        /// <summary>
        /// 收货状态	
        /// </summary>
        private string _receiving_status;
        public string receiving_status
        {
            get { return _receiving_status; }

            set
            {
                if (value == "0") _receiving_status = "删除";
                else if (value == "1") _receiving_status = "草稿";
                else if (value == "2") _receiving_status = "确认";
                else if (value == "3") _receiving_status = "待审核";
                else if (value == "4") _receiving_status = "审核";
                else if (value == "5") _receiving_status = "在途";
                else if (value == "6") _receiving_status = "收货中";
                else if (value == "7") _receiving_status = "收货完成";
                else _receiving_status = value;
            }
        }



        /// <summary>
        /// 平台账号
        /// </summary>
        public string user_account { get; set; }
        /// <summary>
        /// 目的仓库
        /// </summary>
        public string to_warehouse { get; set; }
        /// <summary>
        /// 目的仓库id
        /// </summary>
        public string to_warehouse_id { get; set; }
        /// <summary>
        /// 发运仓库
        /// </summary>
        public string warehouse { get; set; }
        /// <summary>
        /// 发运仓库id
        /// </summary>
        public string warehouse_id { get; set; }
        /// <summary>
        /// 运输方式代码
        /// </summary>
        public string sm_code { get; set; }
        /// <summary>
        /// 运输方式代码中文名称
        /// </summary>
        public string sm_name_cn { get; set; }
        /// <summary>
        /// 目的地
        /// </summary>
        public string destination { get; set; }
        /// <summary>
        /// 头程费用
        /// </summary>
        public string head_freight { get; set; }
        /// <summary>
        /// 头程关税
        /// </summary>
        public string head_tariff { get; set; }
        /// <summary>
        /// 头程费用币种
        /// </summary>
        public string cost_currency_code { get; set; }
        /// <summary>
        /// 头程关税币种
        /// </summary>
        public string tariff_currency_code { get; set; }
        /// <summary>
        /// 内件数
        /// </summary>
        public string parcel_quantity { get; set; }
        /// <summary>
        /// 数量（箱）
        /// </summary>
        public string box_count { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public string amount { get; set; }
       



        /// <summary>
        /// 包裹重量（kg）
        /// </summary>
        public string so_weight { get; set; }

        /// <summary>
        /// 系统重量（kg）
        /// </summary>
        public string system_weight { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 收件人
        /// </summary>
        public string oab_name { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string oab_phone { get; set; }
        /// <summary>
        /// 传真
        /// </summary>
        public string oab_fax { get; set; }
        /// <summary>
        /// 收件人公司
        /// </summary>
        public string oab_company { get; set; }
        /// <summary>
        /// 收件人电子邮件
        /// </summary>
        public string oab_email { get; set; }
        /// <summary>
        /// 收件人邮编
        /// </summary>
        public string oab_postcode { get; set; }
        /// <summary>
        /// 收件人国家
        /// </summary>
        public string oab_county { get; set; }
        /// <summary>
        /// 收件人州/区域
        /// </summary>
        public string oab_state { get; set; }
        /// <summary>
        /// 收件人城市
        /// </summary>
        public string oab_city { get; set; }
        /// <summary>
        /// 收件人地址1
        /// </summary>
        public string oab_street_address1 { get; set; }
        /// <summary>
        /// 收件人地址2
        /// </summary>
        public string oab_street_address2 { get; set; }
        /// <summary>
        /// 收件人门牌号
        /// </summary>
        public string oab_doorplate { get; set; }
        /// <summary>
        /// 订单产品信息
        /// </summary>
        public List<Product_Info> product_info { get; set; }

        public class Product_Info
        { 
        
        
        }


        /// <summary>
        /// 装箱单信息
        /// </summary>
        public object packing_info { get; set; }

        /// <summary>
        /// 轨迹信息
        /// </summary>
        public object dg_order_info { get; set; }
        /// <summary>
        /// 装箱明细
        /// </summary>
        public List<Packing_Receiving_And_Purchase_Info> packing_receiving_and_purchase_info { get; set; }
        public class Packing_Receiving_And_Purchase_Info
        {


        }


        /// <summary>
        /// SKU的采购单号/入库单号（组合产品对应的是子产品的入库单和采购单）
        /// </summary>
        public object receiving_and_purchase { get; set; }

        /// <summary>
        /// 头程费用信息【注意：只有is_fee不等于0才会返回】【开发中】
        /// </summary>
        //public string product_fee_detail_info { get; set; }
    }
}
